﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyTuyenSinh.Operator
{
	public partial class Operator
	{
        public static DataTable GetListZone()
        {
            _dtTable = new DataTable();
            string sql = "SELECT * From Zone";
            try
            {
                _dtTable = DataConfig.GetDataTable(sql);
            }
            catch (SqlException ex)
            {
                MessageBox.Show(ex.ToString());
            }
            return _dtTable;
        }
        public static DataTable GetListZoneById(long ethnicId)
        {
            _dtTable = new DataTable();
            string sql = string.Format("SELECT * FROM Zone Where Id= N'{0}'", ethnicId);
            try
            {
                _dtTable = DataConfig.GetDataTable(sql);
            }
            catch (SqlException ex)
            {
                MessageBox.Show(ex.ToString());
            }
            return _dtTable;
        }
	}
}
